import { Application, ChannelService, RemoterClass, FrontendSession } from 'pinus';

export default function (app: Application) {
    return new TimerRemote(app);
}

// TimerRpc的命名空间自动合并
declare global {
    interface TimerRpc {
        timer: {
            timerRemote: RemoterClass<FrontendSession, TimerRemote>;
        };
    }
}

export class TimerRemote {

    constructor(private app: Application) {
        this.app = app;
        this.channelService = app.get('channelService');
    }

    private channelService: ChannelService;


}